mariadb.git
3 weeks agoDisable the 'mysql*' command deprecation warning
Otto Kekalainen [Sun, 30 Jun 2024 15:18:06 +0000 (15:18 +0000)]
Disable the 'mysql*' command deprecation warning

Many command-line tools expect the commands they run to return without
any output in stderr or having error codes. The fact that now in MariaDB
11.4 all 'mysql*' commands emit a deprecation warning causes a lot of
scripts to fail, such as the /etc/init.d/mariadb itself and many dependent
programs as witnessed via Debian autopkgtests. See examples below.

https://ci.debian.net/packages/m/mariadb-connector-odbc/testing/amd64/48373500/
https://ci.debian.net/packages/p/pam-mysql/testing/amd64/48373511/
https://ci.debian.net/packages/r/roundcube/testing/amd64/48373518/

Forwarded: not-needed

Gbp-Pq: Name hide-mysql-command-deprecation-warnings.patch

3 weeks agoShow banner in server and client startup to drive community engagement
Otto Kekalainen [Sun, 10 Mar 2024 16:56:13 +0000 (16:56 +0000)]
Show banner in server and client startup to drive community engagement

Suggest to users that they can support MariaDB development by simply giving a
star on GitHub. This patch experiments with how well such a banner works, and
may later change the contents to drive some other kind of engagement.

Client output:

    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 17
    Server version: 11.8.1-MariaDB-5 from Debian -- Please help get to 10k stars at https://github.com/MariaDB/Server

    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    MariaDB [(none)]>

Server output:
    [Note] Please help get to 10k stars at https://github.com/MariaDB/Server

Server output if built in git directory:
    [Note] Starting MariaDB 11.8.1-MariaDB-5 from Debian source revision 1a9c3debfd6b1b16af4e501d3530b866b85c38a8 server_uid eNAjF8/wvUNM09/mSmh+k3a5o5w= as process 1359

Logs will also show as server output:
    mysqld: Version: '11.8.1-MariaDB-5 from Debian'  socket: '/run/mysqld/mysqld.sock'  port: 3306  -- Please help get to 10k stars at https://github.com/MariaDB/Server

This patch can be dropped if Debian updates to ship

Something similar was merged in https://github.com/MariaDB/server/commit/346c7afe9b7071ce9c47892a83d69944b608b3da
and thus included in MariaDB 12.3 onward.

Forwarded: not-needed

Gbp-Pq: Name startup-message.patch

3 weeks agoInstall PAM modules and systemd units into /usr
Michael Biebl [Mon, 22 Jan 2024 21:52:25 +0000 (22:52 +0100)]
Install PAM modules and systemd units into /usr

Since Debian trixie all files need to be installed into their canonical
location under /usr.

Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061348
Forwarded: https://github.com/MariaDB/server/pull/4065

Gbp-Pq: Name install-files-into-usr.patch

3 weeks agocmake: add support for reproducible buildS
Sutou Kouhei [Sat, 5 Feb 2022 02:05:39 +0000 (11:05 +0900)]
cmake: add support for reproducible buildS

We should use relative path not absolute path. We can use target without
breaking reproducibility.

This patch can be removed once MariaDB ships with Mroonga v12.00+ that has
https://github.com/mroonga/mroonga/commit/27caeb9b8ce7fa432b1251eca475b517c6902a6c

Origin: https://github.com/mroonga/mroonga/issues/298#issuecomment-1030815927
Bug: https://github.com/mroonga/mroonga/issues/298
Forwarded: not-needed

Gbp-Pq: Name mroonga-mrn-lib-dirs-path-reproducible-build.patch

3 weeks agoFix perl path in scripts
Otto Kekalainen [Sun, 20 Dec 2020 18:58:42 +0000 (20:58 +0200)]
Fix perl path in scripts

Fix Lintian issue https://lintian.debian.org/tags/incorrect-path-for-interpreter.html

Upstream will never accept this patch,
see https://github.com/MariaDB/server/pull/1718

Origin: https://patch-diff.githubusercontent.com/raw/MariaDB/server/pull/1718.patch
Forwarded: https://github.com/MariaDB/server/pull/1718 (rejected, will never be merged)

Gbp-Pq: Name env-perl-usr-bin-perl.patch

3 weeks agomariadb (1:11.8.6-5) unstable; urgency=medium
Lena Voytek [Tue, 24 Mar 2026 13:26:38 +0000 (09:26 -0400)]
mariadb (1:11.8.6-5) unstable; urgency=medium

  * New mariadb-server installs will now use /var/lib/mariadb as the default
    data directory. See NEWS for details.
    - Determine whether to use /var/lib/mysql or /var/lib/mariadb during
      mariadb-server preinst and postinst.
    - On purge, remove /var/lib/mariadb, and /var/lib/mysql only if owned by
      mariadb.
    - d/p/set-default-datadir-to-var-lib-mariadb.patch: Update compile-time
      INSTALL_MYSQLDATADIR_DEB setting to /var/lib/mariadb.
    - d/mariadb-server.mariadb.init: Default to /var/lib/mariadb if datadir is
      not specified in config.
    - d/additions/50-server.cnf: Update default datadir in comment to
      /var/lib/mariadb.
    - Update autopkgtests to match new data directory expectations.
    - Apport: Include /var/lib/mariadb data directory info in report.
    - Salsa CI: Confirm correct datadir is in use for each test and add list of
      /var/lib/mariadb files as test artifact.
  * Use mariadb_upgrade_info/mysql_upgrade_info version files instead of
    generated flag files to detect active data directory and downgrade
    attempts.

[dgit import unpatched mariadb 1:11.8.6-5]

3 weeks agoImport mariadb_11.8.6-5.debian.tar.xz
Lena Voytek [Tue, 24 Mar 2026 13:26:38 +0000 (09:26 -0400)]
Import mariadb_11.8.6-5.debian.tar.xz

[dgit import tarball mariadb 1:11.8.6-5 mariadb_11.8.6-5.debian.tar.xz]

2 months agoImport mariadb_11.8.6.orig.tar.gz
Otto Kekäläinen [Sat, 7 Feb 2026 08:08:08 +0000 (08:08 +0000)]
Import mariadb_11.8.6.orig.tar.gz

[dgit import orig mariadb_11.8.6.orig.tar.gz]